package services

import "iot-base/common/ctrltype"

type handler func(pCmd *ctrltype.CtrlCmd) (map[string]interface{}, error)

var handlerMap map[string]handler

func init() {
	handlerMap = map[string]handler{
		"GetProfiles":      GetProfiles,
		"SetProfile":       SetProfile,
		"ScanOnvifIp":      ScanOnvifIp,
		"ContinuousMove":   ContinuousMove,
		"RelativeZoomMove": RelativeZoomMove,
		"StopMove":         StopMove,
		"GetPresets":       GetPresets,
		"SetPreset":        SetPreset,
		"RemovePreset":     RemovePreset,
		"GotoPreset":       GotoPreset,
		"FocusMove":        FocusMove,
	}
}
